Optimal. Leaf size=107 \[ \frac {6 a^2 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {e \sec (c+d x)}}-\frac {6 a^2 \sqrt {e \sec (c+d x)} \sin (c+d x)}{d e}-\frac {4 i \left (a^2+i a^2 \tan (c+d x)\right )}{d \sqrt {e \sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 107, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3577, 3853,
3856, 2719} \begin {gather*} -\frac {6 a^2 \sin (c+d x) \sqrt {e \sec (c+d x)}}{d e}-\frac {4 i \left (a^2+i a^2 \tan (c+d x)\right )}{d \sqrt {e \sec (c+d x)}}+\frac {6 a^2 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {e \sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2719
Rule 3577
Rule 3853
Rule 3856
Rubi steps
\begin {align*} \int \frac {(a+i a \tan (c+d x))^2}{\sqrt {e \sec (c+d x)}} \, dx &=-\frac {4 i \left (a^2+i a^2 \tan (c+d x)\right )}{d \sqrt {e \sec (c+d x)}}-\frac {\left (3 a^2\right ) \int (e \sec (c+d x))^{3/2} \, dx}{e^2}\\ &=-\frac {6 a^2 \sqrt {e \sec (c+d x)} \sin (c+d x)}{d e}-\frac {4 i \left (a^2+i a^2 \tan (c+d x)\right )}{d \sqrt {e \sec (c+d x)}}+\left (3 a^2\right ) \int \frac {1}{\sqrt {e \sec (c+d x)}} \, dx\\ &=-\frac {6 a^2 \sqrt {e \sec (c+d x)} \sin (c+d x)}{d e}-\frac {4 i \left (a^2+i a^2 \tan (c+d x)\right )}{d \sqrt {e \sec (c+d x)}}+\frac {\left (3 a^2\right ) \int \sqrt {\cos (c+d x)} \, dx}{\sqrt {\cos (c+d x)} \sqrt {e \sec (c+d x)}}\\ &=\frac {6 a^2 E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {e \sec (c+d x)}}-\frac {6 a^2 \sqrt {e \sec (c+d x)} \sin (c+d x)}{d e}-\frac {4 i \left (a^2+i a^2 \tan (c+d x)\right )}{d \sqrt {e \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 1.01, size = 132, normalized size = 1.23 \begin {gather*} -\frac {2 i \sqrt {2} a^2 e^{2 i (c+d x)} \left (-\sqrt {1+e^{2 i (c+d x)}}+\left (1+e^{2 i (c+d x)}\right ) \, _2F_1\left (\frac {1}{2},\frac {3}{4};\frac {7}{4};-e^{2 i (c+d x)}\right )\right )}{d \sqrt {\frac {e e^{i (c+d x)}}{1+e^{2 i (c+d x)}}} \left (1+e^{2 i (c+d x)}\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 1098 vs. \(2 (123 ) = 246\).
time = 0.51, size = 1099, normalized size = 10.27
method | result | size |
default | \(\text {Expression too large to display}\) | \(1099\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.10, size = 61, normalized size = 0.57 \begin {gather*} -\frac {2 \, {\left (-3 i \, \sqrt {2} a^{2} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, e^{\left (i \, d x + i \, c\right )}\right )\right ) - \frac {i \, \sqrt {2} a^{2} e^{\left (\frac {3}{2} i \, d x + \frac {3}{2} i \, c\right )}}{\sqrt {e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-\frac {1}{2}\right )}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - a^{2} \left (\int \left (- \frac {1}{\sqrt {e \sec {\left (c + d x \right )}}}\right )\, dx + \int \frac {\tan ^{2}{\left (c + d x \right )}}{\sqrt {e \sec {\left (c + d x \right )}}}\, dx + \int \left (- \frac {2 i \tan {\left (c + d x \right )}}{\sqrt {e \sec {\left (c + d x \right )}}}\right )\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^2}{\sqrt {\frac {e}{\cos \left (c+d\,x\right )}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________